package com.zmykj.hik.hikService.Common;


import com.zmykj.hik.hikService.Service.CMS.OnlineDevManager;

/**
 * @author LengChen
 * @version 1.0
 * @date 2021/5/21
 */
public class HikUtils {


    /**
     * 判断设备是否在线，并返回设备在线号
     * @param deviceID
     * @return
     */
    public static Long checkDeviceID(String deviceID){
        long lUserID = OnlineDevManager.GetUserID(deviceID);
        if (lUserID == -1)
        {
            CommonMethod.logRecord("Error", "deviceID is null 设备号【"+deviceID+"】不在线");
            return lUserID;
        }
        return lUserID;
    }

}
